package com.ss.android.article.browser.view.multiselect.viewholder.a;

import android.content.Context;
import android.util.TypedValue;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.RelativeLayout;

import org.jetbrains.annotations.NotNull;

public final class a extends com.ss.android.article.browser.view.multiselect.viewholder.aa {
    private a() {

    }

    public a(byte arg1) {
        this();
    }

    @NotNull
    public final View a(@NotNull Context context) {
        ImageView v0 = new ImageView(context);
        v0.setImageResource(com.ss.android.article.browser.R.drawable.qe);
        return ((View) v0);
    }

    public final void a(@NotNull View itemView, @NotNull View selectView) {
        selectView.setVisibility(View.VISIBLE);
    }

    public final void a(@NotNull ViewGroup root, @NotNull View itemView, @NotNull View selectView) {
        root.removeAllViews();
        RelativeLayout.LayoutParams v0 = new RelativeLayout.LayoutParams(-2, -1);
        v0.addRule(9);
        v0.addRule(15);
        root.addView(selectView, ((ViewGroup.LayoutParams) v0));
        v0 = new RelativeLayout.LayoutParams(itemView.getLayoutParams().width, itemView.getLayoutParams().height);
        v0.addRule(1, selectView.getId());
        int v1 = selectView.getPaddingLeft();
        Context context = selectView.getContext();
        selectView.setPadding(v1 + (((int) TypedValue.applyDimension(1, 20f, context.getResources().getDisplayMetrics()))), selectView.getPaddingTop(), selectView.getPaddingRight(), selectView.getPaddingBottom());
        itemView.setLayoutParams(v0);
        root.addView(itemView);
    }

    @NotNull
    public final View b(@NotNull Context context) {
        ImageView v0 = new ImageView(context);
        v0.setImageResource(com.ss.android.article.browser.R.drawable.qd);
        return v0;
    }

    public final void b(@NotNull View itemView, @NotNull View selectView) {
        selectView.setVisibility(View.GONE);
    }

    @NotNull
    public final ViewGroup c(@NotNull Context context) {
        return new RelativeLayout(context);
    }
}

